(function() {
    'use strict';

    angular
        .module('zhserverApp')
        .controller('D_m_zhenghe_recipe_statDetailController', D_m_zhenghe_recipe_statDetailController);

    D_m_zhenghe_recipe_statDetailController.$inject = ['$scope', '$rootScope', '$stateParams', 'previousState', 'entity', 'D_m_zhenghe_recipe_stat'];

    function D_m_zhenghe_recipe_statDetailController($scope, $rootScope, $stateParams, previousState, entity, D_m_zhenghe_recipe_stat) {
        var vm = this;

        vm.d_m_zhenghe_recipe_stat = entity;
        vm.previousState = previousState.name;

        var unsubscribe = $rootScope.$on('zhserverApp:d_m_zhenghe_recipe_statUpdate', function(event, result) {
            vm.d_m_zhenghe_recipe_stat = result;
        });
        $scope.$on('$destroy', unsubscribe);
    }
})();
